/*
	Written By Pradipna Nepal
	www.pradsprojects.com

	Copyright (C) 2012 Prads Projects
	Please read COPYING.txt included along with this source code for more detail.
	If not included, see http://www.gnu.org/licenses/
*/

#include "libPrintError.h"

void PrintError::printError(int errNum, const char *errDesc) {
	switch (errNum) {
		case ERROR_SYNTAX:
			cout << "Syntax Error: ";
			break;
		case ERROR_UNDECLARED_IDENT:
			cout << "Undeclared Identifier: ";
			break;
		default:
			cout << "Unknown Error: ";
	}

	cout << errDesc << "\r\n";
}